package com.weigee.ktv.m.retrofit;

import retrofit2.Retrofit;

/**
 * Created by linde on 2017/04/22.
 * <p/>
 */
public final class RetrofitUtil {
    public static final RetrofitUtil INSTANCE = new RetrofitUtil();

    private final ApiService service;

    private RetrofitUtil() {
        Retrofit retrofit = new Retrofit.Builder()
                .baseUrl(ApiService.BASE_URL)
//                .addConverterFactory(GsonConverterFactory.create())
                .build();
        service = retrofit.create(ApiService.class);
    }

    public ApiService getApiService() {
        return service;
    }
}
